#include "generate_random_plaintext.h"
#include "part_analysis.h"

#include <stdio.h>
#include <stdlib.h>


word random_word( )
{
	word value = 0 ;
	int size = 12 ;
	word rand_value = get_value(size) ;
	int block = RC6_WORD / size ;
	for ( int i = 0 ; i <= block ; ++i )
	{
		value += ((word)rand()%rand_value)<<(8*i) ;
	}
	return value ;
}
void generate_random_plaintext( word* plaintext , int size )
{
	for ( int i = 0 ; i < size ; ++i )
	{
		plaintext[i] = random_word() ;
// 		plaintext[i] += 1 ;
	}
}